.inner(ng-controller="DatabaseDrawerCtrl")
  h4 Database Information
  h5 Node labels
    span.count(ng-show="labels.showing") &nbsp;({{labels.total}})
  a.token.token-label(ng-show="labels.showing", ng-click="editor.execScript('MATCH (n) RETURN n LIMIT 25')") *
  span(ng-show="!labels.showing").
    No labels in database
  span(ng-repeat='label in labels.list')
    a.token.token-label(ng-click="editor.execScript(substituteToken('MATCH (n:<token>) RETURN n LIMIT 25', label))") {{label}}
  div(ng-show="labels.showing && labels.showing < labels.total")
    a(ng-click="showMore('labels')") Show {{labels.nextStepSize}} more
    | &nbsp;|&nbsp;
    a(ng-click="showAll('labels')") Show all
  h5 Relationship types
    span.count(ng-show="relationships.showing") &nbsp;({{relationships.total}})
  a.token.token-relationship-type(ng-show="relationships.showing", ng-click="editor.execScript('MATCH ()-[r]->() RETURN r LIMIT 25')") *
  span(ng-show="!relationships.showing").
    No relationships in database
  span(ng-repeat='relationshipType in relationships.list')
    a.token.token-relationship-type(ng-click="editor.execScript(substituteToken('MATCH p=()-[r:<token>]->() RETURN p LIMIT 25', relationshipType))") {{relationshipType}}
  div(ng-show="relationships.showing && relationships.showing < relationships.total")
    a(ng-click="showMore('relationships')") Show {{relationships.nextStepSize}} more
    | &nbsp;|&nbsp;
    a(ng-click="showAll('relationships')") Show all

  div(ng-show='propertyKeys.showing')
    h5 Property keys
      span.count &nbsp;({{propertyKeys.total}}) 
    span(ng-show="!propertyKeys.showing").
      No property keys in database
    span(ng-repeat='propertyKey in propertyKeys.list')
      a.token.token-property-key(ng-click="editor.execScript(substituteToken('MATCH (n) WHERE EXISTS(n.<token>) RETURN DISTINCT \"node\" as element, n.<token> AS <token> LIMIT 25 UNION ALL MATCH ()-[r]-() WHERE EXISTS(r.<token>) RETURN DISTINCT \"relationship\" AS element, r.<token> AS <token> LIMIT 25', propertyKey))") {{propertyKey}}
    div(ng-show="propertyKeys.showing && propertyKeys.showing < propertyKeys.total")
      a(ng-click="showMore('propertyKeys')") Show {{propertyKeys.nextStepSize}} more
      | &nbsp;|&nbsp;
      a(ng-click="showAll('propertyKeys')") Show all
  h5 Database
  ul
    li.pair
      .key Version:
      .value {{ neo4j.version }}
    li.pair
      .key Name:
      .value {{kernel.DatabaseName || '-'}}
    li.pair
      .key Size:
      .value {{kernel.TotalStoreSize | humanReadableBytes}}
    li.pair
      .key Information
      a.value(play-topic='sysinfo') sysinfo
